<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>保险支公司管理</title>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>
<body class="iframeBody">
<div class="Wrapper">
    <div>
        <div id="pageInTab" class="pageInTab">
            <div tabid="insSubCompBase" title="基本信息" lselected="true">
                <form id="insCompInfo_form">
                    <div class="fieldset1 tabel_col tabel_col_1 clearFix">
                        <div class="caption">
                            <span class="title">保险支公司基本信息</span>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">保险公司</div>
                            <div class="field">
                                ${insCompInfoVO.compPidNm}
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">支公司名称</div>
                            <div class="field">
                                ${insCompInfoVO.compNm}
                            </div>
                        </div>

                        <div class="fieldBox col_33">
                            <div class="label">渠道</div>
                            <div class="field">
                                ${insCompInfoVO.chnCdNm}
                            </div>
                        </div>

                        <div class="fieldBox col_33">
                            <div class="label">购买方式</div>
                            <div class="field">
                                ${insCompInfoVO.buyWayCdNm}
                            </div>
                        </div>

                        <div class="fieldBox col_33">
                            <div class="label">区域-省份</div>
                            <div class="field">
                                ${insCompInfoVO.rgnPrNm}
                            </div>
                        </div>

                        <div class="fieldBox col_33">
                            <div class="label">区域-城市</div>
                            <div class="field">
                                ${insCompInfoVO.rgnCyNm}
                            </div>
                        </div>

                        <div class="fieldBox col_33 chn1">
                            <div class="label">联系人</div>
                            <div class="field">
                                ${insCompInfoVO.lmNm}
                            </div>
                        </div>
                        <div class="fieldBox col_33 chn1">
                            <div class="label">联系电话</div>
                            <div class="field">
                                ${insCompInfoVO.lmTel}
                            </div>
                        </div>
                        <div class="fieldBox col_33 chn1">
                            <div class="label">开户银行</div>
                            <div class="field">
                                ${insCompInfoVO.bkNm}
                            </div>
                        </div>
                        <div class="fieldBox col_33 chn1">
                            <div class="label">开户行号</div>
                            <div class="field">
                                ${insCompInfoVO.bkNo}
                            </div>
                        </div>
                        <div class="fieldBox col_33 chn1">
                            <div class="label">账户名称</div>
                            <div class="field">
                                ${insCompInfoVO.accNm}
                            </div>
                        </div>
                        <div class="fieldBox col_33 chn1">
                            <div class="label">银行账号</div>
                            <div class="field">
                                ${insCompInfoVO.accNo}
                            </div>
                        </div>

                        <div class="fieldBox col_33 chn1">
                            <div class="label">渠道起始日期</div>
                            <div class="field">
                                ${insCompInfoVO.chnBgDts}
                            </div>
                        </div>
                        <div class="fieldBox col_33 chn1">
                            <div class="label">渠道结束日期</div>
                            <div class="field">
                                ${insCompInfoVO.chnEndDts}
                            </div>
                        </div>
                        <div class="fieldBox col_33 chn1">
                            <div class="label">协议号</div>
                            <div class="field">
                                ${insCompInfoVO.protNo}
                            </div>
                        </div>
                        <div class="fieldBox col_100">
                            <div class="label">备注</div>
                            <div class="field" style="width:100%;">
                                ${insCompInfoVO.compRem}
                            </div>
                        </div>
                        <div class="fieldBox col_100" id="fileModify">
                            <div class="label">资料</div>
                            <div class="field">
                                <jsp:include page="../../system/sysUlFilesRec/sysUlFileRecList.jsp" flush="true">
                                    <jsp:param name="pkId" value="${insCompInfoVO.id }"/>
                                    <jsp:param name="tabNm" value="INS_COMP_INFO"/>
                                </jsp:include>
                            </div>
                        </div>

                    </div>
                </form>
            </div>
            <c:if test="${insCompInfoVO.chnCd==1}">
                <div tabid="subCompPolicy" tabid="subCompPolicy" title="渠道政策">
                    <sys:funcAuth resCd="createInsSubComp">
                    <iframe frameborder="0" name="insCompPolicy" id="insCompPolicy" src=""></iframe>
                    </sys:funcAuth>
                </div>
            </c:if>

            <c:if test="${insCompInfoVO.chnCd==2}">
                <div tabid="subCompProc" tabid="subCompPolicy" title="渠道流程">
                    <iframe frameborder="0" name="insCompProc" id="insCompProc" src=""></iframe>
                </div>
            </c:if>
        </div>
        <div class="btnsBox" style="text-align: center;">
            <span id="close_Btn" class="sq-button sq-button-hasicon l-dialog-btn-ok">
            <i class="sqBtnIco_14"></i>关闭</span>
        </div>
    </div>
</div>


<script>
    var loadedTabs = [],pageInTab;
    var pageInApp = {};
    $(function () {
        var insCompInfoId = "${insCompInfoVO.id}";//主键ID
        var chnCd = "${insCompInfoVO.chnCd}";//渠道
        //判断保险支公司渠道
        //if (insCompInfoId && "${insCompInfoVO.chnCd}" == "1") {//我司渠道
        if (StringUtils.isNotEmpty(insCompInfoId)){
            $(".chn1").show();
        }/* else {
           $(".chn1").hide();
        }*/

        pageInTab = $("#pageInTab").ligerTab({
            height: 'auto',
            contextmenu: false,
            minIframeHeight: GET_minIframeHeight(),
            onAfterSelectTabItem: function (tabid) {
                if (loadedTabs.indexOf(tabid) < 0) {
                    //获取支公司ID供其它页面使用
                    if (tabid != "insSubCompBase") {
                        if (!insCompInfoId) {
                            top.$.ligerDialog.SQalert({
                                content: LogUtils.LOG_INS_CONFIRM_HERE_HAS_INFO,
                                SQ_type: "warning"
                            });
                            return false; //验证不通过，不执行以下代码
                        }
                    }
                    loadedTabs.push(tabid);
                    switch (tabid) {
                        case "subCompPolicy":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/insurance/insCompChnPol/toDtlListPage.do?chnCd=" + chnCd + "&insCompId=" + insCompInfoId);
                            break;
                        case "subCompProc":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/insurance/insCompChnPol/toDtlListPage.do?chnCd=" + chnCd + "&insCompId=" + insCompInfoId);
                            break;
                    }
                }
                SetIframe_height();
            }
        });

        $.extend(true, pageInApp, {
            pageInTab: pageInTab
        });

        /*关闭*/
        $("#close_Btn").click(function (event) {
            Remove_navTab();
        });
    });

    //资料 无删除操作
    function getDelColumn(){
    }

</script>
</body>
</html>
